package com.vxb.testmvp.test_zonghe.test_3;

import android.content.Context;
import android.widget.TextView;

import com.holenzhou.pullrecyclerview.BaseRecyclerAdapter;
import com.holenzhou.pullrecyclerview.BaseViewHolder;
import com.vxb.testmvp.R;

import java.util.List;

/**
 * Created by User on 2017/3/31.
 */

public class Test3Adapter extends BaseRecyclerAdapter<ScoreBase.ScoreData.ScoreContent.Detail> {

    public Test3Adapter(Context context, int layoutResId, List<ScoreBase.ScoreData.ScoreContent.Detail> data) {
        super(context, layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, ScoreBase.ScoreData.ScoreContent.Detail item) {
        TextView tv_content = holder.getView(R.id.tv_content);
        TextView tv_time = holder.getView(R.id.tv_time);
        TextView tv_fixed_score = holder.getView(R.id.tv_fixed_score);

        tv_content.setText(item.getContent());
        tv_time.setText(item.getTimes());
        tv_fixed_score.setText(item.getScore());

    }

}
